<?php

class UserViewLogin extends View{
	private $_siteDocument;
	
	function __construct(){
		global $siteDocument;
		$this->_siteDocument = $siteDocument;
	}
	
	function display(){
		if ($_SESSION['user']) 
			$this->setLayout('success');
		else 
			$this->setLayout('login');
	}
	
	
} 